package com.lzy.permission.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.lzy.permission.dao.UserManager;
import com.lzy.permission.entity.User;
import com.lzy.util.Page;

@Service
public class UserServiceImpl implements UserService{

	private UserManager userManager;
	
	@Autowired
	public void setUserDao(UserManager userManager) {
		this.userManager = userManager ;
	}
	
	public void addUser(User user) {
	}

	public void delUser(String id) {
		
	}

	public void updateUser(User user) {
		
	}

	public User queryUserById(String id) {
		return null;
	}

	public Page<User> findPageById(String id) {
		return null;
	}
	
	public Page<User> findPage() {
		Page<User> page = new Page<User>();
		page.setStart(0);
		page.setLimit(20);
		return userManager.findPage(page);
	}

	
}
